package com.hzit.seckill.controller;

import com.hzit.seckill.service.ISeckillOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author hbxfwf
 * @since 2023-10-12
 */
@RestController
public class SeckillOrderController {
	@Autowired
	private ISeckillOrderService orderService;

	//3. 下单
	@GetMapping("/seckill/saveOrder")
	public String saveOrder(String id){
		orderService.saveOrder(id);
		return "success";
	}
}
